﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SDMX_Common = SDMX_ML.Framework.Common;

namespace SDMX_ML.Framework.Metadata
{
    public class ComponentValueType
    {
        //Attributes.
        private ObjectIDType _object;
        private SDMX_Common.IDType _component;

        /// <summary>
        /// ComponentValueType.
        /// </summary>
        /// <param name="objectIDType"></param>
        public ComponentValueType(ObjectIDType objectIDType)
        {
            if (objectIDType != null)
            {
                _object = objectIDType;
            }
            else
            {
                throw new Exception("ObjectIDType is required in ComponentValueType.");
            }
        }

        /// <summary>
        /// Object.
        /// </summary>
        public ObjectIDType Object
        {
            get { return _object; }
            set { _object = value; }
        }
 
        /// <summary>
        /// Component.
        /// </summary>
        public SDMX_Common.IDType Component
        {
            get { return _component; }
            set { _component = value; }
        }
    }
}
